package cn.js.ccit.controller;


import cn.js.ccit.pojo.Student;
import cn.js.ccit.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

//@RestController
//@RequestMapping("/student")
public class StudentController {
/*
   // @Autowired
 //   private StudentService studentService;

   // @RequestMapping("/get")
    @RequestMapping(value="/get",method= RequestMethod.GET,produces="text/plain;charset=utf-8")
    public String getStudentInfo(){
        return "studnetInfo";
    }

    //@RequestMapping("/getInfo")
    @RequestMapping(value="/getInfo",method= RequestMethod.GET,produces="text/plain;charset=utf-8")
    public String getStudentById(){
        Student s = studentService.findStudentById(1);
        System.out.println("学生姓名：" + s.getUsername());
        System.out.println("学生密码：" + s.getPassword());
        System.out.println("学生邮箱：" + s.getEmail());
        return "学生信息："+s.getUsername()+","+s.getPassword()+","+s.getEmail();
    }

 */
}
